import {ref, onMounted, getCurrentInstance,} from "vue"
import {getSettingRequest, loginReuqest} from "../../net/Api.js";
import LogUtils from "../../utils/LogUtils.js";

export default {
    setup() {
        const data = ref("主页")
        let {proxy} = getCurrentInstance();

        onMounted(() => {
            // data.value = "修改数据"
            LogUtils.log("页面挂载")

            let params = {
                mobile: "13071179037",
                password: "111111",
                userType: 1
            }

            loginReuqest(params, proxy).then((res) => {

            }).catch((err) => {

            })

            getSettingRequest(null, proxy).then(res => {

            }).catch((err) => {

            })
        })

        const myFunction = () => {

        }

        return {
            myFunction,
            data,
        }
    }

}

